<?
	$template_to_load = "";
	if(isset($_SESSION["REF_TMPL"]) && trim($_SESSION["REF_TMPL"])!="")
	{
  	  $affiliate_tmpl = $_SESSION["REF_TMPL"];
	}

/*	if(isset($affiliate_tmpl) && $affiliate_tmpl!="")
	{
	  $template_to_load = $affiliate_tmpl;
	  $template = new Template();

	  $REPLACES = array("[content]"=>$MAIN_BUFFER_CONTENT);

 	  if(substr($template_to_load, 0, 7)=="http://")
	  {  
	    $template->loadTemplateFromURL($template_to_load,$REPLACES,STORAGE);
	  }else
	  {
	    $template->loadTemplateFromFile($template_to_load,$REPLACES);
	  }  
      exit(0);
	}

 */
        
    include(SKIN_PATH."header.php");
    include(SKIN_PATH."block_main.php");
	include(SKIN_PATH."footer.php");
?>
<script src="lib/JsHttpRequest/JsHttpRequest.js"></script>
<script>
	setInterval (
		function supportSession () {
		    var req = new JsHttpRequest();
		  	req.method = "POST";
		  	req.onreadystatechange = function() {
		        if (req.readyState == 4) {
		  			if (req.responseJS.status == 'ok') {
						
		  			} else {
						
		  			}
		        }
		    }

		    req.open(null, 'sess.php', true);
		    
		    var parameters = new Array();
		    parameters['none']	= 'none';
		    req.send(parameters);
		}
	,300000);
</script>
<div onMouseOut="hide_image();" id="image_div" name="image_div" style="DISPLAY:none;Z-INDEX: 100;CURSOR: hand;POSITION: absolute;"></div>
</body></html>